package com.senlingspace.payment.douyin.bean.response;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
public class DouyinPoiMatchQueryResponse implements Serializable {

    @JsonProperty("data")
    private Datas data;

    @JsonProperty("error_code")
    private int errorCode;

    @JsonProperty("description")
    private String description;

    @JsonProperty("extra")
    private String extra;

    @JsonProperty("logid")
    private String logId;

    @JsonProperty("now")
    private long now;

    @Data
    public static class Datas implements Serializable {
        @JsonProperty("relations")
        private List<Relation> relations;
    }

    @Data
    public static class Relation implements Serializable {
        @JsonProperty("ext_id")
        private String extId;

        @JsonProperty("match_poi_id")
        private String matchPoiId;

        @JsonProperty("match_relation_status")
        private int matchRelationStatus;
    }
}

